<template>
	<view class="index-box">
		<sww-page-order ref="modulePageRef" @callbackData='callbackData' :noNav="true"></sww-page-order>
	</view>
</template>
<script>
	import {
		commonPage
	} from '@/mixins/commonPage';
	import {
		mapActions
	} from 'vuex';
	export default {
		mixins: [commonPage],
		data() {
			return {
				paramsObj: {}, //页面栈传值
			}
		},
		onLoad(options) {
			this.$nextTick(function() {
				this.$refs['modulePageRef'].tabAct = options.id || 0;
			});
			this.loadUserInfo() // 有些订单下单成功后会变更用户等级，这里及时刷新方便分享时可以把分享id带出去
		},
		methods:{
			...mapActions(['loadUserInfo']),
			callbackData(data){ //子组件传页面栈数据进来
				this.paramsObj =data
			}
		}
	};
</script>
<style>
	page {
		background: #f5f5f5 !important;
	}
</style>
